#!/bin/sh
set -x
dest=""

if [ $YHB_MODEL_REPO_PATH ];then
  dest=$YHB_MODEL_REPO_PATH

  cp -rf src/main/java/com/yhb/model $dest
  cp -rf src/main/java/com/yhb/controller/form $dest
  cp -rf src/main/java/com/yhb/controller/vo $dest

  cd $dest

  git add .
  git commit -a -m 'update pojp'
  git push
else
  echo "设置 YHB_MODEL_REPO_PATH 为目标目录"
fi